let myForm = document.querySelector('form')

myForm.onsubmit = (function (e) {
     e.preventDefault()
     alert('登录成功')
})

